home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _7F6582D8591145F7AFDDE27AEE17786F < prev    next >
Encoding:
Text File  |  2000-03-27  |  1.2 KB  |  42 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4.  
  5. // skinhead karate kicks a door open
  6.  
  7.  
  8.  
  9. local entity closetdoor // the door that opens slowly
  10. local entity closetguy // the skinhead who will karate kick open the door
  11. local entity f_closetpush // the push brush infront of the closet in case the player is by the rofed door
  12. local int sig1
  13. local int sig2
  14.  
  15. closetdoor = find entity with targetname "closetdoor"
  16. closetguy = find entity with targetname "closetguy"
  17. f_closetpush = find entity with targetname "f_closetpush"
  18.  
  19. // closetdoor.movetype = MOVETYPE_NOCLIP
  20.  
  21. use entity closetguy // spawns him in
  22. animate entity closetguy performing action STD_XKICKDOOR_N_A_A by moving [32, 0, 0] signaling sig1 // this is the ninja kick animation
  23. animate entity closetguy performing action SCRIPT_RELEASE
  24. wait .25 seconds
  25. use entity f_closetpush // triggers the pushbrush to get the player out of the way
  26. moverotate entity closetdoor from file "generic_door_ccw.rof" signaling sig2 // the door kicking open animation
  27. wait .2 seconds 
  28. use entity f_closetpush // shuts this off
  29. play sound "impact/door/kickdoor.wav" for entity closetdoor at volume 0.9
  30. wait for all clearing sig1, sig2
  31.  
  32.  
  33.  
  34. // closetdoor.movetype = MOVETYPE_STOP
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.